package com.icongyou.enterprise.talent_analysis.mapper;

import com.icongyou.enterprise.talent_analysis.entity.DataSyncLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;

/**
 * 数据同步日志 Mapper
 */
@Mapper
public interface DataSyncLogMapper {
    
    /**
     * 插入同步日志
     */
    void insert(DataSyncLog log);
    
    /**
     * 检查记录是否已同步
     */
    DataSyncLog selectByTableAndRecord(@Param("tableName") String tableName, 
                                       @Param("recordId") String recordId);
    
    /**
     * 获取指定表的最后同步时间
     */
    LocalDateTime getLastSyncTime(@Param("tableName") String tableName);
}
